// 统一请求路径前缀在libs/axios.js中修改
import {
  getRequest,
  postRequest,
  formRequest,
  putRequest,
  deleteRequest,
  uploadFileRequest
} from "@/libs/axios";

//机房

export const getEquipmentRoomInfo = params => {
  return getRequest("/bss/equipmentroom/info", params);
};

export const addEquipmentRoom = params => {
  return postRequest("/bss/equipmentroom/save", params);
};

export const editEquipmentRoom = params => {
  return postRequest("/bss/equipmentroom/update", params);
};

export const deleteEquipmentRoom = params => {
  return postRequest("/bss/equipmentroom/delete", params);
};

export const getEquipmentRoomList = params => {
  return getRequest("/bss/equipmentroom/list", params);
};

//机架

export const getFrameInfo = params => {
  return getRequest("/bss/frame/info", params);
};

export const getFrameDevices = params => {
  return getRequest("/bss/frame/frames_devices", params);
};

export const addFrame = params => {
  return postRequest("/bss/frame/save", params);
};

export const editFrame = params => {
  return postRequest("/bss/frame/update", params);
};

export const deleteFrame = params => {
  return postRequest("/bss/frame/delete", params);
};
//设备

export const getDeviceInfo = params => {
  return getRequest("/bss/device/info", params);
};

export const addDevice = params => {
  return postRequest("/bss/device/save", params);
};

export const editDevice = params => {
  return postRequest("/bss/device/update", params);
};

export const deleteDevice = params => {
  return postRequest("/bss/device/delete", params);
};
